package com.youxue.dao;

import com.youxue.entity.ShoppingCollection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingCollectionMapper {
    int deleteByPrimaryKey(@Param(value = "scId") Integer scId,@Param(value = "scType") Integer scType,@Param(value = "userId") Integer userId);

    int insert(ShoppingCollection record);

    int insertSelective(ShoppingCollection record);

    ShoppingCollection selectByPrimaryKey(Integer scId);

    int updateByPrimaryKeySelective(ShoppingCollection record);

    int updateByPrimaryKey(ShoppingCollection record);

    List<ShoppingCollection> selectAUserAllSc(@Param(value = "userId") Integer userId,
                                              @Param(value = "scType") Integer scType);

    ShoppingCollection selectBooleanAdd(@Param(value = "userId") Integer userId,
                                        @Param(value = "scType") Integer scType,
                                        @Param(value = "classId") Integer classId);

    int selectAUserCountSc(@Param(value = "userId") Integer userId,
                           @Param(value = "scType") Integer scType);
}